package com.tiancheng.trade.authserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.authserver.entity.AuthApplication;
import com.tiancheng.trade.authserver.entity.AuthPermission;
import com.tiancheng.trade.authserver.entity.AuthRole;

import java.util.List;

/**
 * @Author: likailun
 * @Description: 授权权限service
 * @Date: create in 2024/10/21 17:18
 */
public interface IAuthPermissionService extends IService<AuthPermission> {
    List<AuthPermission> getUserPermissionsByApplicationClientId(Long userId, String clientId);

    /**
     * 获取数据行所需的权限编码
     *
     * @param id 权限id
     */
    String getDataPermissionCode(Long id);
    /**
     * 更新应用下的所有权限的数据权限
     */
    void updateDataPermissionCode(AuthApplication application);
}
